public class Student {
    private String name;
    private int age;
    public Student(){}
    public Student(String name, int age){
        this.name = name;
        this.age = age;
    }
    @Override
    public String toString(){
        return String.format("Student(name=%s, age=%d)",name,age);
    }

    public static void main(String[] args) {
        Array<Student> students = new Array<>();
        students.addLast(new Student("zhangsan",100));
        students.addLast(new Student("lisi",22));
        students.addLast(new Student("wangwu",42));
        System.out.println(students);
    }
}
